package excel.service.impl;

import excel.bean.Emp;
import excel.dao.EmpDao;
import excel.service.IEmpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2020/5/11.
 */
@Service
public class EmpServiceImpl implements IEmpService {
    @Resource
    private EmpDao empDao;


    public List<Emp> selemps() {
        return empDao.allemp();
    }
    public void saveemp(Emp emp) {
        empDao.addemp(emp);
        System.out.println("导入成功");
    }

    @Override
    public Map<String, Emp> allmap() {
        return empDao.allmap();
    }
}
